init-functions: in killproc, pass '--name' to start-stop-daemon
authorDmitry Bogatov <KAction@debian.org>
Sun, 10 Mar 2019 19:12:39 +0000 (19:12 +0000)
committerDidier Raboud <odyx@debian.org>
Wed, 13 Mar 2019 20:23:05 +0000 (21:23 +0100)
Closes: #921558
init-functions

index a8c9c2c6241dbee2520ca35b239af4b593c9d62e..252da64d24a1648a479bcb546880448ee07856d7 100644 (file)
@@ -141,7 +141,7 @@ killproc () {
     if [ ! $pidfile ]; then
         name_param="--name $base --pidfile /var/run/$base.pid"
     else
-        name_param="--pidfile $pidfile"
+        name_param="--name $base --pidfile $pidfile"
     fi
 
     sig=$(echo ${2:-} | sed -e 's/^-\(.*\)/\1/')